package by.apiskun.curex.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.apiskun.curex.datamodel.Money;

public interface MoneyService {
	Money getId(Long id);

	Long getCount();

	List<Money> getAllMoney();

	List<Money> getAllMoneyByName(String name);

	@Transactional
	void updateMoneyName(Long id, String newName);

	@Transactional
	void saveOrUpdate(Money money);

	@Transactional
	void delete(Money money);

	@Transactional
	void deleteAll();

}
